package com.zhentao.tot.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.zhentao.tot.mapper.WmSensitiveMapper;
import com.zhentao.tot.domain.WmSensitive;
import com.zhentao.tot.service.IWmSensitiveService;

/**
 * 敏感词信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-18
 */
@Service
public class WmSensitiveServiceImpl implements IWmSensitiveService 
{
    @Autowired
    private WmSensitiveMapper wmSensitiveMapper;

    /**
     * 查询敏感词信息
     * 
     * @param id 敏感词信息主键
     * @return 敏感词信息
     */
    @Override
    public WmSensitive selectWmSensitiveById(Integer id)
    {
        return wmSensitiveMapper.selectWmSensitiveById(id);
    }

    /**
     * 查询敏感词信息列表
     * 
     * @param wmSensitive 敏感词信息
     * @return 敏感词信息
     */
    @Override
    public List<WmSensitive> selectWmSensitiveList(WmSensitive wmSensitive)
    {
        return wmSensitiveMapper.selectWmSensitiveList(wmSensitive);
    }

    /**
     * 新增敏感词信息
     * 
     * @param wmSensitive 敏感词信息
     * @return 结果
     */
    @Override
    public int insertWmSensitive(WmSensitive wmSensitive)
    {
        return wmSensitiveMapper.insertWmSensitive(wmSensitive);
    }

    /**
     * 修改敏感词信息
     * 
     * @param wmSensitive 敏感词信息
     * @return 结果
     */
    @Override
    public int updateWmSensitive(WmSensitive wmSensitive)
    {
        return wmSensitiveMapper.updateWmSensitive(wmSensitive);
    }

    /**
     * 批量删除敏感词信息
     * 
     * @param ids 需要删除的敏感词信息主键
     * @return 结果
     */
    @Override
    public int deleteWmSensitiveByIds(Integer[] ids)
    {
        return wmSensitiveMapper.deleteWmSensitiveByIds(ids);
    }

    /**
     * 删除敏感词信息信息
     * 
     * @param id 敏感词信息主键
     * @return 结果
     */
    @Override
    public int deleteWmSensitiveById(Integer id)
    {
        return wmSensitiveMapper.deleteWmSensitiveById(id);
    }
}
